﻿//-----------------------------------------------------------------------
// <copyright file="Order.cs" company="FER">
//     Copyright (c) All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace NMBP.Models
{
    using System;

    using NMBP.Models.Enums;

    /// <summary>
    /// Represents one order
    /// </summary>
    public class Order
    {
        /// <summary>
        /// Gets or sets order date
        /// </summary>
        public string Date { get; set; }

        /// <summary>
        /// Gets or sets supplier for this order
        /// <remarks>Also a seller</remarks>
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// Gets or sets order payment method
        /// </summary>
        public PaymentMethod PaymentMethod { get; set; }

        /// <summary>
        /// Gets or sets car, needed to get buyer and list of ordered products
        /// </summary>
        public Cart Cart { get; set; }

        /// <summary>
        /// Gets or sets orders code number
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// Gets or sets worker who did the order
        /// </summary>
        public string WorkerUsername { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether purchase is done (worker has to set it done when it's really done)
        /// </summary>
        public bool IsDone { get; set; }
    }
}
